﻿<%@ Page Language="C#" MasterPageFile="~/Provider/CarInsurance/Liberty_CarInsurance.master"
    AutoEventWireup="true" CodeFile="ViewProviderCarCapacityExcessClaim.aspx.cs"
    Inherits="Provider_CarInsurance_ViewProviderCarCapacityExcessClaim" Title="View Car Capacity And Excess By Claim" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div class="provider_inner">
        <h1>
            Capacity And Excess By Claim</h1>
        <div class="right_action">
            <asp:HyperLink runat="server" ID="lnkNewClaimInfo" NavigateUrl="~/Provider/CarInsurance/ProviderCarCapacityExcessClaim.aspx"
                Text="New"></asp:HyperLink>
        </div>
        <fieldset>
            <dl>
                <dt class="top_action">
                    <label>Claim Value : </label></dt>
                <dd>
                    <asp:DropDownList ID="ddlClaimValue" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlClaimValue_SelectedIndexChanged">
            </asp:DropDownList>
                </dd>
            </dl>
        </fieldset>
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" CellPadding="2"
            DataKeyNames="ProviderCarCapacityExcessClaimId,ProviderCompanyId" DataSourceID="sqlDsProviderCarCapacityExcessClaim"
            CssClass="progridstyle" GridLines="None" EmptyDataText="There are no data records to display.">
            <Columns>
                <asp:BoundField DataField="ProviderCarCapacityExcessClaimId" HeaderText="ProviderCarCapacityExcessClaimId"
                    InsertVisible="False" ReadOnly="True" SortExpression="ProviderCarCapacityExcessClaimId"
                    Visible="False" />
                <asp:BoundField DataField="ProviderCompanyId" HeaderText="ProviderCompanyId" ReadOnly="True"
                    SortExpression="ProviderCompanyId" Visible="False" />
                <asp:BoundField DataField="ProviderCarClaimExpId" HeaderText="ProviderCarClaimExpId"
                    SortExpression="ProviderCarClaimExpId" Visible="False" />
                <asp:BoundField DataField="Claim Value" HeaderText="Claim Value" SortExpression="Claim Value" />
                <asp:BoundField DataField="FromCC" HeaderText="FromCC" SortExpression="FromCC" />
                <asp:BoundField DataField="ToCC" HeaderText="ToCC" SortExpression="ToCC" />
                <asp:BoundField DataField="ExcessAmount" HeaderText="ExcessAmount" SortExpression="ExcessAmount" />
                <asp:BoundField DataField="RefCEUserId" HeaderText="RefCEUserId" SortExpression="RefCEUserId"
                    Visible="False" />
                <asp:CheckBoxField DataField="Status" HeaderText="Status" SortExpression="Status" />
                <asp:BoundField DataField="CreatedDate" HeaderText="CreatedDate" SortExpression="CreatedDate"
                    Visible="False" />
                <asp:BoundField DataField="ModifiedDate" HeaderText="ModifiedDate" SortExpression="ModifiedDate" />
                <asp:HyperLinkField HeaderText="" Text="Edit" Target="_self" DataNavigateUrlFormatString="ProviderCarCapacityExcessClaim.aspx?FromCC={0}&ToCC={1}&ClaimValue={2}"
                    DataNavigateUrlFields="FromCC,ToCC,ProviderCarClaimExpId"></asp:HyperLinkField>
            </Columns>
            <FooterStyle />
            <PagerStyle />
            <SelectedRowStyle CssClass="progridover" />
            <HeaderStyle CssClass="progridheader" />
            <EditRowStyle />
            <AlternatingRowStyle CssClass="progridodd" />
            <RowStyle CssClass="progrideven" />
        </asp:GridView>
        <asp:SqlDataSource ID="sqlDsProviderCarCapacityExcessClaim" runat="server" ConnectionString="<%$ ConnectionStrings:CE_DBConnectionString %>"
            SelectCommand="sprocProviderCarCapacityExcessClaimSelectItemListView" SelectCommandType="StoredProcedure">
            <SelectParameters>
                <asp:SessionParameter Name="ProviderCompanyId" SessionField="ProviderCompanyId" Type="Int64" />
                <asp:ControlParameter ControlID="ddlClaimValue" Name="ProviderCarClaimExpId" PropertyName="SelectedValue"
                    Type="Int32" />
            </SelectParameters>
        </asp:SqlDataSource>
        <asp:ImageButton OnClientClick="javascript:return confirm('Are you sure to go back?');"
            ID="ibtBack" runat="server" ImageUrl="~/Provider/images/buttons/back1.gif" OnClick="ibtBack_Click" />
    </div>
</asp:Content>
<asp:Content ID="Content2" runat="server" ContentPlaceHolderID="head">
    <style type="text/css">
        .style1
        {
            font-weight: bold;
        }
    </style>
</asp:Content>
